<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE HTML>
<ui:composition template="/dinamic/template/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:define name="conteudo">
		<h:form id="form">  
			 <p:growl id="messages" autoUpdate="true" />
		 		<h:panelGrid columns="2" cellpadding="5">
					<h:outputLabel styleClass="name" value="Titulo : "/>			
					<h:inputText  size="30" id="titulo" value="#{postagemManagedBean.postagem.titulo}" feedback="true" required="true" requiredMessage="Informe o titulo"/>
			
					<h:outputLabel styleClass="name"  value="Assunto : "/>
					<h:outputText value="#{postagemManagedBean.postagem.assunto}" />
					
					<br/>
				</h:panelGrid>
  				<p:editor id="editor" value="#{postagemManagedBean.postagem.mensagem}" width="600"/>  
			<h:commandButton value="Postar !" action="#{postagemManagedBean.incluirPostagem()}" ajax="false"/>  
		</h:form> 
	</ui:define>
</ui:composition>